 ABOUT TEXT SEARCH (A Comfortable Introduction)

Introduction
How Does It Work,
Querying Using Text Search
Customizing Text Search, Creating A Dictionary
----------------------------------------------------------
INTRODUCTION
- to be covered/not covered (1dy required for full description)
- the big picture
- will cover basic capabilities (think Google)
- some things will not be talked about (want to keep this fun, you'll learn once you're comfortable with the stuff)
- why is text search so fast compared to regular searching
- is it more accurate (depends), can produce lots of false positives
----------------------------------------------------------
HOW DOES IT WORK
  Preparing the sample database (01.load_database.sql)
  Preliminary queries (02.preliminary_queries.sql)
----------------------------------------------------------
QUERYING USING TEXT SEARCH
  Exploring Text Search (03.exploring_text_search.sql)
  About Functions and Operators (http://www.postgresql.org/docs/9.2/static/functions-textsearch.html)
----------------------------------------------------------
CUSTOMIZING TEXT SEARCH, CREATING A DICTIONARY
  About Dictionaries, Lexemes, Stop Words and Synonyms (http://www.postgresql.org/docs/9.2/static/textsearch-configuration.html)
  SQL Commands (http://www.postgresql.org/docs/9.2/static/sql-commands.html)
  An Example (04.creating_dictionary.sql)
    stop words (installed by default)
    dictionary
      getting ispell
      installation
    synonyms
      create
      installation
      updating the dictionary
    thesaurus
    text search configuration
      create
      alter
    demonstrate & test

----------------------------------------------------------
CAVEATS
- limitations on searches for index size of columns i.e. btree
- limitations on text search
- general rule for configuring a list of dictionaries:
    - first, the most narrow and specific dictionary
    - next, the more general dictionaries
    - last, a very general dictionary i.e. a snowball stemmer (or simple dictionary)
----------------------------------------------------------
REFERENCES

http://www.postgresql.org/docs/9.2/static/textsearch.html
http://www.postgresql.org/docs/9.2/static/functions-textsearch.html
http://www.postgresql.org/docs/9.2/static/textsearch-controls.html
http://en.wikipedia.org/wiki/Project_Gutenberg
